package com.share;

import com.github.dadiyang.equator.FieldInfo;
import com.github.dadiyang.equator.GetterBaseEquator;
import com.share.entity.User;

import java.util.List;

/**
 * @author sunxuejian
 * @date 2020/4/8
 */
public class EquatorTest {

    public static void main(String[] arg) {

        GetterBaseEquator equator = new GetterBaseEquator();
        User u1 = new User();
        u1.setNaem("sunxj");
        u1.setAge(26);

        User u2 = new User();
        List<FieldInfo> diffFields = equator.getDiffFields(u1, u2);
        System.out.println(diffFields);


    }
}
